package com.deyuanyun.pic.integalz.controller;

import com.deyuanyun.pic.common.util.ajax.AjaxSupport;
import com.deyuanyun.pic.integalz.controller.dto.IntegalzQueryVO;
import com.deyuanyun.pic.integalz.service.IntegalzAmbientEnvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * “管道敷设环境分析” 管理控制类
 *
 * 方法详情：<br/>
 *
 * @author huanglw
 * @date  2016-11-16
 *
 * History: [修改人][时间][修改描述]
 */
@Controller
@RequestMapping("/integalz/ae")
public class IntegalzAmbientEnvController {

    @Autowired
    private IntegalzAmbientEnvService integalzAmbientEnvService;


    /**
     * 查询 管道沿线人口密度
     *
     * @param queryVO
     */
    @RequestMapping("/queryPopulationDistribution.json")
    @ResponseBody
    public void queryPopulationDistribution(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.queryPopulationDistribution(queryVO));
    }

    /**
     * 查询 特定场所分布
     *
     * @param queryVO
     */
    @RequestMapping("/querySpecificPlace.json")
    @ResponseBody
    public void querySpecificPlace(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.querySpecificPlace(queryVO));
    }

    /**
     * 查询 第三方管道及设施
     *
     * @param queryVO
     */
    @RequestMapping("/queryAEPipeline.json")
    @ResponseBody
    public void queryAEPipeline(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.queryAEPipeline(queryVO));
    }

    /**
     * 查询 交通设施
     *
     * @param queryVO
     */
    @RequestMapping("/queryTrafficFacilities.json")
    @ResponseBody
    public void queryTrafficFacilities(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.queryTrafficFacilities(queryVO));
    }

    /**
     * 查询 地下排污排水设施
     *
     * @param queryVO
     */
    @RequestMapping("/querySewer.json")
    @ResponseBody
    public void querySewer(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.querySewer(queryVO));
    }

    /**
     * 查询 地质灾害
     *
     * @param queryVO
     */
    @RequestMapping("/queryGeologicHazard.json")
    @ResponseBody
    public void queryGeologicHazard(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.queryGeologicHazard(queryVO));
    }

    /**
     * 查询 管道占压
     *
     * @param queryVO
     */
    @RequestMapping("/queryPressObject.json")
    @ResponseBody
    public void queryPressObject(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", integalzAmbientEnvService.queryPressObject(queryVO));
    }
}
